import http from "./request"; //记得引入进来

class SearchService extends http {
  constructor() {
    super();
    this.baseUrl = "/supervisor"
  }
  // 获取层次的大学
  GetUniversity(body) {
    return this.http({
      method: "post",
      url: "/GetUniversity",
      body,
    }, {
      loading: true
    });
  }
  // 根据大学获取学院
  GetDepartment(body) {
    return this.http({
      method: "post",
      url: "/GetDepartment",
      body,
    }, {
      loading: true
    });
  }
  // 根据大学,学院获取导师列表
  GetSupervisor(body) {
    return this.http({
      method: "post",
      url: "/GetSupervisor",
      body,
    }, {
      loading: true
    });
  }
  // 根据大学，学院，导师获取评论
  GetReview(body) {
    return this.http({
      method: "post",
      url: "/GetReview",
      body,
    }, {
      loading: true
    });
  }
  // api里获得数据
  requestReview(body) {
    return this.http({
      method: 'post',
      url: '/requestReview',
      body
    },
      {
        loading: true
      });
  }
  // 获得万方数据库中的导师id
  getId(body) {
    return this.http({
      method: 'get',
      url: '/getId',
      body
    },
      {
        loading: true
      });
  }

  // 获得导师hindex
  getHindex(body) {
    return this.http({
      method: 'get',
      url: '/getHindex',
      body
    },
      {
        loading: true
      });
  }
  // 获得研究方向
  getInterest(body) {
    return this.http({
      method: 'get',
      url: '/getInterest',
      body
    },
      {
        loading: true
      });
  }

  // 获得研究项目
  getResearchInfo(body) {
    return this.http({
      method: 'get',
      url: '/getResearchInfo',
      body
    },
      {
        loading: true
      });
  }
}

export default new SearchService();